package ch.netcetera.planningpoker.client.ui.participant.play;


import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;

public class PlayView extends Composite implements
        PlayPresenter.IView {

    private static CreateGameViewUiBinder uiBinder = GWT
            .create(CreateGameViewUiBinder.class);

    interface CreateGameViewUiBinder extends UiBinder<Widget, PlayView> {
    }

    @UiField
    HasText gameTitle;
    
    @UiField
    HasText participant;
    
    @UiField
    HasWidgets allParticipants;
    
    @UiField
    HasWidgets currentRound;
    
    public PlayView() {
        initWidget(uiBinder.createAndBindUi(this));
    }

    @Override
    public Widget asWidget() {
        return this;
    }

    @Override
    public void addToSlot(Object slot, Widget content) {

    }

    @Override
    public void removeFromSlot(Object slot, Widget content) {

    }

    @Override
    public void setInSlot(Object slot, Widget content) {

    }

    @Override
    public HasText getGameTitle() {
        return gameTitle;
    }

    public HasText getParticipant() {
        return participant;
    }

    public HasWidgets getAllParticipants() {
        return allParticipants;
    }

    @Override
    public HasWidgets getCurrentRound() {
        return currentRound;
    }


}
